<?php
$path = __DIR__."/../../../";

$ip = $_SERVER['REMOTE_ADDR'];
file_put_contents($path."_inc/config/ip.php",$ip);